#include "MyBasePos.hh"

G4ThreeVector MyBasePos::ConvertArrayToV3(YAML::Node array)
{
    if (!array.IsDefined() || !array.IsSequence() || array.size() != 3)
        return G4ThreeVector(0., 0., 0.);
    return G4ThreeVector(array[0].as<double>(0.), array[1].as<double>(0.), array[2].as<double>(0.));
}